package com.example.dao;

import com.example.entity.Dept;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface DeptDao {
    @Select("select * from dept")
    List<Dept> select();

    List<Dept> select1(Dept dept);
@Insert("insert into dept values(#{did},#{dname},#{salary})")
    int add(Dept dept);
}
